home *** CD-ROM | disk | FTP | other *** search
/ Shocking The Web CD-ROM / SHOCK_CD.ISO / pc / tutorial / ch07_au / cmddemos / bitmanul.dir / 00002_UI routines.ls < prev    next >
Encoding:
Text File  |  1996-10-23  |  957 b   |  35 lines

  1. on radio optArg
  2.   if not optArg then
  3.     set clickName to the name of member the memberNum of sprite the clickOn
  4.   else
  5.     set clickName to optArg
  6.     set the hilite of cast clickName to 1
  7.   end if
  8.   set oldDelim to the itemDelimiter
  9.   set the itemDelimiter to "-"
  10.   if the number of items in clickName = 2 then
  11.     set val to item 1 of clickName
  12.     set family to item 2 of clickName
  13.     radioHilite(clickName, family)
  14.     set the itemDelimiter to oldDelim
  15.     if family = "band" then
  16.       makePref("bandwidth", val)
  17.     end if
  18.   end if
  19. end
  20.  
  21. on radioHilite hName, family
  22.   repeat with i = 1 to 48
  23.     if the memberNum of sprite i then
  24.       set bName to the name of member the memberNum of sprite i
  25.       if (bName contains family) and not (bName = hName) then
  26.         set the hilite of member bName to 0
  27.       end if
  28.     end if
  29.   end repeat
  30.   if not (the hilite of member hName) then
  31.     set the hilite of member hName to 1
  32.   end if
  33.   updateStage()
  34. end
  35.